import Vue from 'vue'
import VueRouter from 'vue-router'
import worker from '../views/worker/list'
import dept from '../views/dept/list'
Vue.use(VueRouter)

const routes = [
  {
    path: '/worker/list',
    name: 'worker',
    component: worker
  },
  {
    path: '/dept/list',
    name: 'dept',
    component:dept
  }
]

const router = new VueRouter({
  routes
})

export default router
